<?php
/**
 * User: Ragnar
 * Date: 3/25/12
 * Time: 5:45 PM
 */

    interface IDatabaseAdapter
    {
        public function connect();
        public function disconnect();
        public function prepare($sql, array $options = array());
        public function execute(array $parameters = array());
        public function fetch($fetchStyle = null, $cursorOrientation = null, $cursorOffset = null);
        public function fetchAll($fetchStyle = null, $column = 0);
        public function select($table, array $bind, $boolOperator = "AND");
        public function insert($table, array $bind);
        public function update($table, array $bind, $where = "");
        public function delete($table, $where = "");
    }

?>